<% properties.each_index do |i|
     prop = properties[i]
     r = sprintf("%s[\"%s\"] = v", map_obj, prop.name)
-%>
<%   if i != 0 -%>

<%   end -%>
<%   unless prop.default.nil? -%>
    <%= sprintf("%s[\"%s\"] = %s", map_obj, prop.name, convert_parameter(prop, args, prefix, 0)) %>
<%     next -%>
<%   end -%>
<%= indent(convert_parameter(prop, args, prefix, 4), 4) %>
<%   unless prop.send_empty_value -%>
    if not is_empty_value(v):
        <%= r %>
<%   else -%>
    if v is not None:
        <%= r %>
<%   end -%>
<% end -%>
